package com.gqj.elec.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.gqj.elec.mapper.ElecWarningMapper;
import com.gqj.elec.domain.ElecWarning;
import com.gqj.elec.service.IElecWarningService;

/**
 * 物资报警Service业务层处理
 * 
 * @author lxq
 * @date 2023-09-02
 */
@Service
public class ElecWarningServiceImpl implements IElecWarningService 
{
    @Autowired
    private ElecWarningMapper elecWarningMapper;

    /**
     * 查询物资报警
     * 
     * @param warningId 物资报警主键
     * @return 物资报警
     */
    @Override
    public ElecWarning selectElecWarningByWarningId(Long warningId)
    {
        return elecWarningMapper.selectElecWarningByWarningId(warningId);
    }

    /**
     * 查询物资报警列表
     * 
     * @param elecWarning 物资报警
     * @return 物资报警
     */
    @Override
    public List<ElecWarning> selectElecWarningList(ElecWarning elecWarning)
    {
        return elecWarningMapper.selectElecWarningList(elecWarning);
    }

    /**
     * 新增物资报警
     * 
     * @param elecWarning 物资报警
     * @return 结果
     */
    @Override
    public int insertElecWarning(ElecWarning elecWarning)
    {
        return elecWarningMapper.insertElecWarning(elecWarning);
    }

    /**
     * 修改物资报警
     * 
     * @param elecWarning 物资报警
     * @return 结果
     */
    @Override
    public int updateElecWarning(ElecWarning elecWarning)
    {
        return elecWarningMapper.updateElecWarning(elecWarning);
    }

    /**
     * 批量删除物资报警
     * 
     * @param warningIds 需要删除的物资报警主键
     * @return 结果
     */
    @Override
    public int deleteElecWarningByWarningIds(Long[] warningIds)
    {
        return elecWarningMapper.deleteElecWarningByWarningIds(warningIds);
    }

    /**
     * 删除物资报警信息
     * 
     * @param warningId 物资报警主键
     * @return 结果
     */
    @Override
    public int deleteElecWarningByWarningId(Long warningId)
    {
        return elecWarningMapper.deleteElecWarningByWarningId(warningId);
    }
}
